package com.k8.rpc;

import com.k8.common.factroy.BeanRegistry;
import com.k8.common.ioc.Injector;
import com.k8.common.ioc.injectorImpl.SafeObjectHolder;
import com.k8.rpc.config.ProtocolConfig;

import java.util.List;
import java.util.Map;

public class ProtocolManager implements BeanRegistry {


    private List<Protocol> protocols;

    @Override
    public void injectBean(Injector injector, Map<String, SafeObjectHolder> relyBeanMaps) {
        this.protocols = getAllBeans(injector, relyBeanMaps, Protocol.class);
    }

    public List<ProtocolConfig> initProtocolToConfig() {
        return null;
    }
}
